<?php

namespace app\validate;

use app\Validate;

class TableValidate extends Validate
{
    protected $rule =   [
        'table'  => ["require"],
        'COMMENT'   => ["require"]
    ];

    protected $message  =   [
        'table.require' => '表名不可为空',
        'COMMENT.require' => '表备注不可为空',
    ];

    protected $scene = [
        'add'  =>  ['table', 'COMMENT'],
        'edit'  =>  ['table', 'COMMENT']
    ];
}
